package edu.stthomas.edu.seis770.simpleclock;

public class DisplayTime extends ClockState {
    public DisplayTime(ClockModel clockModel) {
        super(clockModel);
    }

    @Override
    public void changeMode() {
        //Change the current state to SetHours
        ClockState newState = ClockStateFactory.getClockState(SetHours.class, clockModel);
        clockModel.setCurrentState(newState);
    }

    @Override
    public void increment() {
        // This is invalid state transition at display time state. Do nothing
    }

    @Override
    public void decrement() {
        // This is invalid state transition at display time state. Do nothing
    }

    @Override
    public void cancel() {
        // This is invalid state transition at display time state. Do nothing
    }

}